package com.smart.campus.school.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;

/**
 * 考勤规则对象 sc_attendance_rule
 * 
 * @author Zhihe.Li
 * @date 2020-10-21
 */
public class AttendanceRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String beginTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;
    /** 结束时间 */
    @Excel(name = "下课时间")
    private String lastCourseTime;

    /** 规则有效开始时间 */
    @Excel(name = "规则有效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveBeginTime;

    /** 规则有效截止时间 */
    @Excel(name = "规则有效截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveEndTime;

    /** 状态1 有效 0  无效 */
    @Excel(name = "状态1 有效 0  无效")
    private Integer status;

    /** 学校id */
    @Excel(name = "学校id")
    private Long schoolId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBeginTime(String beginTime) 
    {
        this.beginTime = beginTime;
    }

    public String getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }

    public String getLastCourseTime() {
        return lastCourseTime;
    }

    public void setLastCourseTime(String lastCourseTime) {
        this.lastCourseTime = lastCourseTime;
    }

    public void setEffectiveBeginTime(Date effectiveBeginTime)
    {
        this.effectiveBeginTime = effectiveBeginTime;
    }

    public Date getEffectiveBeginTime() 
    {
        return effectiveBeginTime;
    }
    public void setEffectiveEndTime(Date effectiveEndTime) 
    {
        this.effectiveEndTime = effectiveEndTime;
    }

    public Date getEffectiveEndTime() 
    {
        return effectiveEndTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("effectiveBeginTime", getEffectiveBeginTime())
            .append("effectiveEndTime", getEffectiveEndTime())
            .append("status", getStatus())
            .append("schoolId", getSchoolId())
            .toString();
    }
}
